home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97b.txt
/
000063_icon-group-sender _Tue Sep 16 08:00:29 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
1KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by cheltenham.cs.arizona.edu (8.8.7/8.8.7) with SMTP id IAA07330
for <icon-group-addresses@cheltenham.CS.Arizona.EDU>; Tue, 16 Sep 1997 08:00:28 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA00552; Tue, 16 Sep 1997 08:00:22 -0700
To: icon-group@cs.arizona.edu
Date: Tue, 16 Sep 1997 22:15:29 +1000
From: Stuart.Robinson@anu.edu.au (Stuart Robinson)
Message-Id: <Stuart.Robinson-1609972215290001@asianstmg-221.anu.edu.au>
Organization: ANU
Sender: icon-group-request@cs.arizona.edu
References: <Stuart.Robinson-1609971341100001@asianstmg-221.anu.edu.au>, <5vlnlo$juv$1@vishnu.jussieu.fr>
Subject: Re: case selection expression
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Thanks. I think you're right, Mark. For this sort of thing, a series of
if-then statements is probably more straightforward than the case
selection expression. But it's good to know alternative ways of skinning
the proverbial cat.
By the way, what is the story with "<-"? Is it just a variant of ":="?
> case (find( i <- "x"|"y"|"z"), i) of
> "x": do 1
> "y": do 2
> "z": do 3
> default: do 4
--
Stuart Robinson <Stuart.Robinson@no_spam!anu.edu.au>
The Australian National University
*TO REPLY, REMOVE "no_spam!" FROM E-MAIL ADDRESS GIVEN ABOVE